package com.topone.dataObject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2017/12/4,0004.
 */
@Entity
@Data
@DynamicUpdate
public class OrderDetail {
    //订单详情id
    @Id
    private String detailId;
    //订单id
    private String orderId;
    //优惠券id
    private String couponId;
    //优惠券名称
    private String couponName;
    //优惠券code
    private String couponCode;
    //优惠券种类
    private Integer couponType;
    //优惠券价格
    private BigDecimal couponPrice;
    //优惠券数量
    private Integer couponNum;
    //优惠券图标
    private String couponIcon;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

}
